package com.obas.access.business.service.impl;

import java.util.List;

import com.ease.platform.access.service.impl.AbstractNamespaceAccessServiceImpl;
import com.obas.access.business.service.TestTaskItemAccessService;
import com.obas.model.business.TestTaskItem;
import com.obas.model.business.criteria.TestTaskItemCriteria;

public class TestTaskItemAccessServiceImpl extends AbstractNamespaceAccessServiceImpl<TestTaskItem> implements TestTaskItemAccessService {

    public List<TestTaskItem> findByTestTaskId(long testTaskId) {
        TestTaskItemCriteria parameter = new TestTaskItemCriteria();
        parameter.setTestTaskId(testTaskId);
        return this.find(parameter);
    }

    @Override
    public TestTaskItem findByTestTaskIdAndTestPlanItemId(long testTaskId,
            long testPlanItemId) {
        TestTaskItemCriteria parameter = new TestTaskItemCriteria();
        parameter.setTestTaskId(testTaskId);
        parameter.setTestPlanItemId(testPlanItemId);
        return this.findOne(parameter);
    }
}
